import request from './request'

// 获取问题列表
export const getquestionlist = (params) => {
  return request({
    url: '/getquestionlist',
    method: 'GET',
    params
  })
}

// 获取科目列表
export const getsubjectlist = () => {
  return request({
    url: '/getsubjectlist',
    method: 'GET'
  })
}

// 修改/添加问题
export const setquestion = (data) => {
  return request({
    url: '/setquestion',
    method: 'POST',
    data
  })
}

// 删除问题
export const delquestion = (data) => {
  return request({
    url: '/delquestion',
    method: 'POST',
    data
  })
}

// 获取问题列表
export const getaddquestionlist = (params) => {
  return request({
    url: '/getaddquestionlist',
    method: 'GET',
    params
  })
}

// 修改/添加问题
export const setaddquestion = (data) => {
  return request({
    url: '/setaddquestion',
    method: 'POST',
    data
  })
}

// 删除问题
export const deladdquestion = (data) => {
  return request({
    url: '/deladdquestion',
    method: 'POST',
    data
  })
}

// 获取全部试卷列表
export const getalltestpaperlist = (params) => {
  return request({
    url: '/getalltestpaperlist',
    method: 'GET',
    params
  })
}

// 获取问题列表
export const getquestions = (data) => {
  return request({
    url: '/getquestions',
    method: 'POST',
    data
  })
}

// 修改试卷
export const settestpaper = (data) => {
  return request({
    url: '/settestpaper',
    method: 'POST',
    data
  })
}

// 删除试卷
export const deltestpaper = (data) => {
  return request({
    url: '/deltestpaper',
    method: 'POST',
    data
  })
}
